<?php
$servername="localhost:3306";
$username = "root";
$password ="111111";
$dbname="studentsadmin";

$conn = new mysqli($servername,$username,$password,$dbname);
if ($conn->connect_errno)
{
    die("连接失败：".$conn->connect_errno);
}
//echo"连接成功"."<br/>";
?>